package com.threedr3am.bug.spring.data.mongodb.repository;

import com.threedr3am.bug.spring.data.mongodb.entity.Demo;
import java.util.List;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.Repository;

@org.springframework.stereotype.Repository
public interface DemoRepository extends Repository<Demo, String> {

  @Query("{ id : :#{?0} }")
  List<Demo> findAllByIdLike(String keyword);

  @Query("{ id : ?#{?0} }")
  List<Demo> findAllByIdLike2(String keyword);
}
